Fix dashboard chart not updating after sync#51
Conversation
The WeeklyActivityChart uses useDailyStats hook with query key ['dailyStats', ...] which was not being invalidated when workouts were synced, imported, or deleted. Added dailyStats query invalidation to useHevySync, useDeleteWorkouts, and useEnhancedImport hooks.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughTwo React hooks are updated to invalidate the dailyStats query cache. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The WeeklyActivityChart uses useDailyStats hook with query key
['dailyStats', ...] which was not being invalidated when workouts
were synced, imported, or deleted. Added dailyStats query invalidation
to useHevySync, useDeleteWorkouts, and useEnhancedImport hooks.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.